import request from '@/utils/request'
// -------- 协议--------

let BASE_ADDRESS = 'doc/richText'

//  查询法规标题
export function getRichTextlistTitleApi(params) {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

//  查询协议
export function getRichTextListApi(params) {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}


//  修改协议
export function getRichTextediEApi(data) {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}


//  添加协议
export function getRichTextAddApi(data) {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "post",
        data
    })
}



//  删除协议
export function getRichTextRemoveApi(data) {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: "DELETE",
        data
    })
}
